package com.weigang.config;

import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;

@Component
public class MyHealth implements HealthIndicator {
    @Override
    public Health health() {
//        return Health.up().withDetail("msg:", "up").build();
//        return Health.down().withDetail("msg:", "down").build();
        return  Health.status("FATAL").withDetail("msg:", "测试").build();
    }
}
